#include <iostream>
using namespace std;

int abs(int a) {
    return a < 0 ? -a : a;
}

int main() {
    int abs1 = abs(-1);
    cout << "-1 的绝对值: " << abs1 << endl;
    int abs2 = abs(1);
    cout << "1 的绝对值：" << abs2 << endl;
    int abs3 = abs(-1.5);
    cout << "-1.5的绝对值：" << abs3 << endl;
    int abs4 = abs(1.5);
    cout << "1.5的绝对值：" << abs4 << endl;
    return 0;
}